package com.sise.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author zj
 */
@Data
@Accessors(chain = true)
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单详情id
     */
    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 商品购买数量
     */
    @TableField("product_buy_number")
    private Integer productBuyNumber;

    /**
     * 商品购买时价格
     */
    @TableField("product_buy_price")
    private BigDecimal productBuyPrice;

    /**
     * 用户的商品的评分
     */
    @TableField("order_product_score")
    private Integer orderProductScore;

    /**
     * 订单商品评价状态，0：未评价，1：已评价
     */
    @TableField("order_product_evaluate_status")
    private Integer orderProductEvaluateStatus;
}
